/*
	2022/2/26 by hehung
	转载使用请说明
	1398660197@qq.com
*/
#ifndef _APP_OLED_H_
#define _APP_OLED_H_

#include "gd32l23x.h"
#include "app_iic.h"


extern void OLED_Init(void);

extern void OLED_Fill(unsigned char x1,unsigned char y1,unsigned char x2,unsigned char y2,unsigned char dot);
extern void OLED_Clear(void);

extern void OLED_Refresh_Gram(void);		   
extern void OLED_DrawPoint(unsigned char x,unsigned char y,unsigned char t);
extern void OLED_ShowHz(unsigned char x,unsigned char y,unsigned char chr,unsigned char mode);
extern void OLED_ShowChar(unsigned char x,unsigned char y,unsigned char chr,unsigned char size,unsigned char mode);
extern void OLED_ShowNum(unsigned char x,unsigned char y,unsigned int num,unsigned char len,unsigned char size);
extern void OLED_ShowString(unsigned char x,unsigned char y,const unsigned char *p,unsigned char size,unsigned char mode);	
extern void OLED_Hz_String(unsigned char x,unsigned char y,unsigned char chr_S,unsigned char chr_E);
extern void OLED_ShowBMP(unsigned char x,unsigned char y,unsigned char mode,unsigned char bmp[][16],unsigned int len);
extern void OLED_Hz_StringWithMode(unsigned char x,unsigned char y,unsigned char chr_S,unsigned char chr_E, unsigned char mode);

#endif
